package com.cf.base.http.utils;

import android.util.Log;

import com.cf.base.http.BuildConfig;

/**
 * @author yangji
 */
public class LogUtils {

    private static boolean isDebug = BuildConfig.DEBUG;

    public static void setDebug(boolean isDebug) {
        LogUtils.isDebug = isDebug;
    }

    public static void d(String tag, Object text) {
        if (text != null) {
            Log.d(tag, text.toString());
        }
    }

    public static void e(String tag, Object text) {
        if (text != null) {
            Log.e(tag, text.toString());
        }
    }

}
